<template>
  <div id="app1">
    <el-container>
      <el-header>
        <h1>基于Java的聚类系统</h1>
      </el-header>
      <el-container>
        <el-aside width="20%">
          <el-row class="tac">
            <el-col :span="20">
              <el-menu default-active="resume" class="el-menu-vertical-demo" @select="handleSelect" :router="true">
                <el-menu-item index="/resume">
                  <i class="el-icon-document"></i>
                  <span slot="title">项目简介</span>
                </el-menu-item>
                <el-submenu index="3">
                  <template slot="title">
                    <i class="el-icon-menu"></i>
                    <span>聚类</span>
                  </template>
                  <el-menu-item-group>
                    <template slot="title">原型聚类</template>
                    <el-menu-item index="/kmeans/resume">K-Means</el-menu-item>
                    <el-menu-item index="/dakmeans/resume">改进K-Means</el-menu-item>
                    <el-menu-item index="/lvq/resume">LVQ</el-menu-item>
                    <el-menu-item index="/gmm/resume">GMM</el-menu-item>
                  </el-menu-item-group>
                  <el-menu-item-group>
                    <template slot="title">密度聚类</template>
                    <el-menu-item index="/dbscan/resume">DBSCAN</el-menu-item>
                  </el-menu-item-group>
                  <el-menu-item-group>
                    <template slot="title">层次聚类</template>
                    <el-menu-item index="/agnes/resume">AGNES</el-menu-item>
                  </el-menu-item-group>
                </el-submenu>
                <el-submenu index="4">
                  <template slot="title">
                    <i class="el-icon-question"></i>
                    <span>性能分析</span>
                  </template>
                  <el-menu-item index="/outer/resume">外部指标</el-menu-item>
                  <el-menu-item index="/inner/resume">内部指标</el-menu-item>
                </el-submenu>
                <el-menu-item index="/address">
                  <i class="el-icon-location"></i>
                  <span slot="title">项目地址</span>
                </el-menu-item>
              </el-menu>
            </el-col>
          </el-row>
        </el-aside>
        <el-main width="80%">
          <router-view/>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>

<script>
export default {
  name: "App1.vue",
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath)
    }
  }
}
</script>

<style>

</style>
